import http from '@/utils/http.js'
// 获取进度信息
export function getProgress(params) {
  return http.get('/storage/video/pull_progress', params)
}

// 获取第三方实操软件
export function getThirdSoft(params) {
  return http.get('/app/third_soft/hkj_url', params)
}

// 获取网中网的登录后跳转
export function getWzwCourse(params) {
  return http.get('/app/wzw/student_login', params)
}

//收藏/取消收藏当前课节
export function selectCourse(params) {
  return http.post('/storage/section/section_collect', params)
}
//获取看课页面数据
export function getVideoPageInfo(params) {
  return http.get('/wxpub/api/video_show', params)
}
//根据课节id请求视频信息
export function getVideoInfo(params) {
  return http.get('/wxpub/api/video_detail', params)
}

//获取课程中所有课节收藏列表
export function getCourseSelectList(params) {
  return http.get('/storage/section/section_collect', params)
}

//获取课程中所有课节收藏列表
export function submitQuestion(params) {
  return http.post('/wxpub/solution/question', params)
}

//评分
export function commentVideo(params) {
  return http.post('/storage/video/video_comment', params)
}
//获取视频播放页答疑信息
export function getVideoQuestion(params) {
  return http.get('/wxpub/solution/course_section_questions', params)
}
//答疑权限
export function solutionService(params) {
  return http.get('/wxpub/solution/solution_service', params)
}
//得到商品数据
export function getProduct(params) {
  return http.get('/app/iap/goods_detail', params)
}

//得到商品数据
export function activateThisCode(params) {
  return http.post('/wxpub/api/activation', params)
}

//得到商品数据
export function getListeningTest(params) {
  return http.get('/wxpub/news/listen_detail', params)
}

//播放页进入时是单个课程情况获取当前课程老师和年份
export function getOneCourse(params) {
  return http.get('/wxpub/api/course_teacher_map', params)
}

//获取当前权限集所有老师和年份
export function getCourseMap(params) {
  return http.get('/wxpub/api/course_muster_map', params)
}
//加入购物车
export function addShoppingCart(params) {
  return http.post('/wxpub/shop/cartv2', params)
}